package com.front.teacher.teacherapp.presenter;

import com.front.teacher.teacherapp.base.BasePresenter;
import com.front.teacher.teacherapp.model.ForgetModel;
import com.front.teacher.teacherapp.model.impl.OnForgetListener;
import com.front.teacher.teacherapp.view.impl.IForgetView;

/**
 * Created by Administrator on 2016/8/12.
 */
public class ForgetPresenter extends BasePresenter<IForgetView> {
    private IForgetView forgetView;
    private ForgetModel forgetModel;
    public ForgetPresenter(IForgetView iForgetView) {
        this.forgetView = iForgetView;
        forgetModel = new ForgetModel();
    }

    public void getForget( String name,String number,String email){
        forgetModel.checkNum(name, number, email, new OnForgetListener() {
            @Override
            public void onSuccess() {
                forgetView.onSuccess();
            }

            @Override
            public void onFail() {
                forgetView.onFail();
            }
        });
    }

}
